home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / utilitys / 613 / access / ed.bat < prev    next >
DOS Batch File  |  1991-10-19  |  319b  |  15 lines

  1. set in_file !{root $1}.bak
  2. if !{filestat $in_file}
  3.     erase -n $in_file
  4. rename $1 $in_file
  5. set line 0
  6. block < $in_file > $1
  7.     if !eof
  8.         exit 2
  9.     while OK
  10.         echo !{input -d!input {Line `$line :} < -1 > -1}
  11.         if !eof
  12.             exit 3
  13.         echo {\n}
  14.         set line !{+ $line 1}
  15.